/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.bkav.portal.portlet.product.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link Order_1}.
 * </p>
 *
 * @author    ducdvd
 * @see       Order_1
 * @generated
 */
public class Order_1Wrapper implements Order_1, ModelWrapper<Order_1> {
	public Order_1Wrapper(Order_1 order_1) {
		_order_1 = order_1;
	}

	public Class<?> getModelClass() {
		return Order_1.class;
	}

	public String getModelClassName() {
		return Order_1.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("orderId", getOrderId());
		attributes.put("groupId", getGroupId());
		attributes.put("companyId", getCompanyId());
		attributes.put("userId", getUserId());
		attributes.put("userName", getUserName());
		attributes.put("createDate", getCreateDate());
		attributes.put("modifiedDate", getModifiedDate());
		attributes.put("productId", getProductId());
		attributes.put("email", getEmail());
		attributes.put("orderSL", getOrderSL());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long orderId = (Long)attributes.get("orderId");

		if (orderId != null) {
			setOrderId(orderId);
		}

		Long groupId = (Long)attributes.get("groupId");

		if (groupId != null) {
			setGroupId(groupId);
		}

		Long companyId = (Long)attributes.get("companyId");

		if (companyId != null) {
			setCompanyId(companyId);
		}

		Long userId = (Long)attributes.get("userId");

		if (userId != null) {
			setUserId(userId);
		}

		String userName = (String)attributes.get("userName");

		if (userName != null) {
			setUserName(userName);
		}

		Date createDate = (Date)attributes.get("createDate");

		if (createDate != null) {
			setCreateDate(createDate);
		}

		Date modifiedDate = (Date)attributes.get("modifiedDate");

		if (modifiedDate != null) {
			setModifiedDate(modifiedDate);
		}

		Long productId = (Long)attributes.get("productId");

		if (productId != null) {
			setProductId(productId);
		}

		String email = (String)attributes.get("email");

		if (email != null) {
			setEmail(email);
		}

		String orderSL = (String)attributes.get("orderSL");

		if (orderSL != null) {
			setOrderSL(orderSL);
		}
	}

	/**
	* Returns the primary key of this order_1.
	*
	* @return the primary key of this order_1
	*/
	public long getPrimaryKey() {
		return _order_1.getPrimaryKey();
	}

	/**
	* Sets the primary key of this order_1.
	*
	* @param primaryKey the primary key of this order_1
	*/
	public void setPrimaryKey(long primaryKey) {
		_order_1.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the order ID of this order_1.
	*
	* @return the order ID of this order_1
	*/
	public long getOrderId() {
		return _order_1.getOrderId();
	}

	/**
	* Sets the order ID of this order_1.
	*
	* @param orderId the order ID of this order_1
	*/
	public void setOrderId(long orderId) {
		_order_1.setOrderId(orderId);
	}

	/**
	* Returns the group ID of this order_1.
	*
	* @return the group ID of this order_1
	*/
	public long getGroupId() {
		return _order_1.getGroupId();
	}

	/**
	* Sets the group ID of this order_1.
	*
	* @param groupId the group ID of this order_1
	*/
	public void setGroupId(long groupId) {
		_order_1.setGroupId(groupId);
	}

	/**
	* Returns the company ID of this order_1.
	*
	* @return the company ID of this order_1
	*/
	public long getCompanyId() {
		return _order_1.getCompanyId();
	}

	/**
	* Sets the company ID of this order_1.
	*
	* @param companyId the company ID of this order_1
	*/
	public void setCompanyId(long companyId) {
		_order_1.setCompanyId(companyId);
	}

	/**
	* Returns the user ID of this order_1.
	*
	* @return the user ID of this order_1
	*/
	public long getUserId() {
		return _order_1.getUserId();
	}

	/**
	* Sets the user ID of this order_1.
	*
	* @param userId the user ID of this order_1
	*/
	public void setUserId(long userId) {
		_order_1.setUserId(userId);
	}

	/**
	* Returns the user uuid of this order_1.
	*
	* @return the user uuid of this order_1
	* @throws SystemException if a system exception occurred
	*/
	public java.lang.String getUserUuid()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _order_1.getUserUuid();
	}

	/**
	* Sets the user uuid of this order_1.
	*
	* @param userUuid the user uuid of this order_1
	*/
	public void setUserUuid(java.lang.String userUuid) {
		_order_1.setUserUuid(userUuid);
	}

	/**
	* Returns the user name of this order_1.
	*
	* @return the user name of this order_1
	*/
	public java.lang.String getUserName() {
		return _order_1.getUserName();
	}

	/**
	* Sets the user name of this order_1.
	*
	* @param userName the user name of this order_1
	*/
	public void setUserName(java.lang.String userName) {
		_order_1.setUserName(userName);
	}

	/**
	* Returns the create date of this order_1.
	*
	* @return the create date of this order_1
	*/
	public java.util.Date getCreateDate() {
		return _order_1.getCreateDate();
	}

	/**
	* Sets the create date of this order_1.
	*
	* @param createDate the create date of this order_1
	*/
	public void setCreateDate(java.util.Date createDate) {
		_order_1.setCreateDate(createDate);
	}

	/**
	* Returns the modified date of this order_1.
	*
	* @return the modified date of this order_1
	*/
	public java.util.Date getModifiedDate() {
		return _order_1.getModifiedDate();
	}

	/**
	* Sets the modified date of this order_1.
	*
	* @param modifiedDate the modified date of this order_1
	*/
	public void setModifiedDate(java.util.Date modifiedDate) {
		_order_1.setModifiedDate(modifiedDate);
	}

	/**
	* Returns the product ID of this order_1.
	*
	* @return the product ID of this order_1
	*/
	public long getProductId() {
		return _order_1.getProductId();
	}

	/**
	* Sets the product ID of this order_1.
	*
	* @param productId the product ID of this order_1
	*/
	public void setProductId(long productId) {
		_order_1.setProductId(productId);
	}

	/**
	* Returns the email of this order_1.
	*
	* @return the email of this order_1
	*/
	public java.lang.String getEmail() {
		return _order_1.getEmail();
	}

	/**
	* Sets the email of this order_1.
	*
	* @param email the email of this order_1
	*/
	public void setEmail(java.lang.String email) {
		_order_1.setEmail(email);
	}

	/**
	* Returns the order s l of this order_1.
	*
	* @return the order s l of this order_1
	*/
	public java.lang.String getOrderSL() {
		return _order_1.getOrderSL();
	}

	/**
	* Sets the order s l of this order_1.
	*
	* @param orderSL the order s l of this order_1
	*/
	public void setOrderSL(java.lang.String orderSL) {
		_order_1.setOrderSL(orderSL);
	}

	public boolean isNew() {
		return _order_1.isNew();
	}

	public void setNew(boolean n) {
		_order_1.setNew(n);
	}

	public boolean isCachedModel() {
		return _order_1.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_order_1.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _order_1.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _order_1.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_order_1.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _order_1.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_order_1.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new Order_1Wrapper((Order_1)_order_1.clone());
	}

	public int compareTo(com.bkav.portal.portlet.product.model.Order_1 order_1) {
		return _order_1.compareTo(order_1);
	}

	@Override
	public int hashCode() {
		return _order_1.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.bkav.portal.portlet.product.model.Order_1> toCacheModel() {
		return _order_1.toCacheModel();
	}

	public com.bkav.portal.portlet.product.model.Order_1 toEscapedModel() {
		return new Order_1Wrapper(_order_1.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _order_1.toString();
	}

	public java.lang.String toXmlString() {
		return _order_1.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_order_1.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public Order_1 getWrappedOrder_1() {
		return _order_1;
	}

	public Order_1 getWrappedModel() {
		return _order_1;
	}

	public void resetOriginalValues() {
		_order_1.resetOriginalValues();
	}

	private Order_1 _order_1;
}